package com.alex.designPattern.flyWeight;

public class Client {

	public static void main(String[] args) {
		CoffeeShop coffeeShop = new CoffeeShop();
		coffeeShop.addOrder(1, "咖啡A");
		coffeeShop.addOrder(1, "咖啡B");
		
		coffeeShop.addOrder(2, "咖啡C");
		
		coffeeShop.addOrder(3, "咖啡A");
		coffeeShop.addOrder(3, "咖啡D");
		
		coffeeShop.serveCoffee();
		
		coffeeShop.printCoffee();
	}

}
